export function getRandomValues(array: Uint8Array): Uint8Array {
  // @ts-ignore
  return crypto.getRandomValues(array)
}

export function randomBytes(length: number): Uint8Array {
  const array: Uint8Array = new Uint8Array(length)
  // @ts-ignore
  return crypto.getRandomValues(array)
}
